import 'dart:async';
import '../entity/mall_goods_entity.dart';

class MallGoodsModel {
  StreamController<List<MallGoodsEntity>> _streamCtrl;

  StreamController<List<MallGoodsEntity>> get streamCtrl => _streamCtrl;

  StreamSink<List<MallGoodsEntity>> get sink => _streamCtrl.sink;

  Stream<List<MallGoodsEntity>> get stream => _streamCtrl.stream;

  MallGoodsModel() {
    _streamCtrl = StreamController<List<MallGoodsEntity>>();
  }
}

final MallGoodsModel mallGoodsModel = MallGoodsModel();
